package com.yj.ccs.abs.web.management.dto;

import com.yj.ccs.abs.common.enums.UserRoleType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * Copyright 2018 (C) Yunjian-VC
 * Created on : 2018/3/14
 * Author     : Unbelievable9
 **/
@Data
public class UpdateUserDto {

    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID", required = true, example = "1")
    private Long id;

    @NotNull(message = "姓名不能为空")
    @ApiModelProperty(value = "姓名", required = true, example = "赵莅洋")
    private String username;

    @NotNull(message = "账号不能为空")
    @ApiModelProperty(value = "账号", required = true, example = "zhaoliyang")
    private String account;

    @NotNull(message = "公司不能为空")
    @ApiModelProperty(value = "公司不能为空", required = true, example = "云简")
    private String firm;

    @NotNull(message = "部门不能为空")
    @ApiModelProperty(value = "部门不能为空", required = true, example = "研发部")
    private String apartment;

    @NotNull(message = "国际区号不能为空")
    @ApiModelProperty(value = "国际区号", required = true, example = "86")
    private String area_code;

    @NotNull(message = "手机好不能W")
    @ApiModelProperty(value = "手机", required = true, example = "17600908680")
    private String cellphone;

    @NotNull(message = "权限不能为空")
    @ApiModelProperty(value = "权限<br>1-原始受益人<br>2-计划管理人", required = true, example = "1")
    private UserRoleType role_type;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态 true-启用 false-停用", required = true, example = "true")
    private Boolean active;
}
